﻿using System;

namespace Builderator.Core
{
    public class DocumentProperty : Attribute
    {
        public enum BrowseUriType { File, Folder }

        public string Name
        {
            get;
            set;
        }

        public Type Type
        {
            get;
            set;
        }

        public bool Hidden
        {
            get;
            set;
        }

        public BrowseUriType BrowseType
        {
            get;
            set;
        }

        public string Extensions
        {
            get;
            set;
        }

        public DocumentProperty()
        {

        }

        public DocumentProperty(string name, Type type, bool hidden)
            : this()
        {
            this.Name = name;

            this.Type = type;

            this.Hidden = hidden;
        }

        public DocumentProperty(string name, Type type, bool hidden, BrowseUriType browser, string extensions)
            : this(name, type, hidden)
        {
            this.BrowseType = browser;

            this.Extensions = extensions;
        }
    }
}
